#*************************************
#
# Makefile for TinyXml
# 2006.8.7 by alliciga
#
#*************************************

CXX := g++
AR  := ar rc

CXXFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3

TinyXmlDEFS := -DTIXML_USE_STL
TinyXmlSRCS := tinyxml.cxx tinyxmlparser.cxx tinyxmlerror.cxx
TinyXmlOBJS := $(addsuffix .o, $(basename ${TinyXmlSRCS}))

TinyXml: ${TinyXmlOBJS}
	${AR} libtinyxml.a *.o

%.o : %.cxx
	${CXX} -c ${CXXFLAGS} ${TinyXmlDEFS} $< -o $@
